<template>
  <div>
    <Header></Header>
    <!-- 路口组件出口的地方 -->
    <router-view></router-view>
    <Back />
    <Footer v-show="$route.meta.show"></Footer>
  </div>
</template>

<script>
// 引入组件
import Header from './components/Header'
import Footer from './components/Footer'
import Back from './components/Back'
export default {
  name: 'App',
  // 注册组件
  components:{
    Header,Footer,Back
  },
  mounted() {
    //获取三级联动数据
     this.$store.dispatch('getCategoryList')
  },
}
</script>

<style scoped>
  
</style>